package pub.xspace.nova.system.domain;

import com.alibaba.druid.support.json.JSONUtils;

import pub.xspace.nova.common.domain.BaseEntity;

/**
 * 系统资源实体类
 * 
 * @author HeJianrong
 */
public class SysResource extends BaseEntity {

	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = -1009428867344368946L;
	/** 资源代码 */
	private String code;
	/** 资源名称 */
	private String name;
	/** 上级资源id */
	private String pid;
	/** 资源图标 */
	private String icon;
	/** 资源类型 */
	private String resourceType;
	/** 资源地址 */
	private String url;
	/** 资源状态 */
	private String status;
	/** 排序号 */
	private Integer seq;
	/** 备注 */
	private String remark;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return JSONUtils.toJSONString(this);
	}
}
